package com.lora.util;

import java.util.HashMap;

public class FreshAirUpsMapping {

    private static HashMap<Integer,String> map=new HashMap();
    private FreshAirUpsMapping(){};

    static {
        map.put(312,"switchingstate");
        map.put(313,"workingmode");
        map.put(314,"windspeed");
        map.put(319,"pm25");
        map.put(320,"pm10");
        map.put(322,"temperature");
        map.put(323,"humidity");
        map.put(318,"filtertime");
    }

    /**
     * 通过地址获取对应的字段
     * @param address
     * @return
     */
    public static String getFiled(Integer address){
        return map.get(address);
    }

}
